<?php

class User_ShowController extends Koncept_Rest_Resource_Controller
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    }

    public function getAction($username, $page = 'profile') {
        switch($page) {
            case 'profile':
                $user = User_Model_User::findSingle($username);
                break;
            case 'edit':
                break;
            default:
                break;
        }
        $this->view->pageTitle = 'User ' . $user->username;
        $this->view->bodyTitle = $user->username;
        $this->view->user = $user;
        //$this->view->svend = 'hej bob';
        //$this->view->users = User_Model_User::findAll();
        //$this->view->content = 'SVEND!';
        //echo $this->view->render('index/get.phtml');
    }

}